package cn.shanks.springbootshirojwt.service.impl;

import cn.shanks.springbootshirojwt.mapper.UserMapper;
import cn.shanks.springbootshirojwt.service.UserService;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Shanks
 * @version 1.0
 * @program cn.shanks.springbootshirojwt.service.impl
 * @description
 * @date 2020/11/12 17:44
 */
@Service
@DS("salve")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    @DS("master")
    public void getAllUsers() {
        System.out.println(userMapper.selectList(null));
    }
}
